#!/bin/bash

file=$1
html_file="$(basename $file).html"
echo ${html_file}
jpg_file="$(basename $file).jpg"
echo ${jpg_file}
pandoc $file -s -o ${html_file}
wkhtmltoimage --width 1280 ${html_file} ${jpg_file}
rm ${html_file}

